<?php
/**
 * 充值订单模型
*/

namespace app\common\model;

use think\model\concern\SoftDelete;

class RechargeOrder extends Model
{
    use SoftDelete;
    public $softDelete = true;
    protected $name = 'recharge_order';
    protected $autoWriteTimestamp = true;

    //可搜索字段
    protected $searchField = [];

    //支付时间获取器
public function getPayTimeAttr($value)
{
    return date('Y-m-d H:i:s',$value);
}

//支付时间修改器
public function setPayTimeAttr($value)
{
    return strtotime($value);
}

    

    
}
